﻿namespace OT.HikiSecureCenterApis.Service.OneCard.Res
{
    public class ResDoorEvents
    {
        /// <summary>
        /// 事件ID，唯一标识这个事件
        /// </summary>
        public string eventId { get; set; }
        /// <summary>
        /// 事件名称
        /// </summary>
        public string eventName { get; set; }
        /// <summary>
        /// 事件产生时间，参考附录B ISO8601时间格式说明
        /// </summary>
        public DateTime eventTime { get; set; }
        /// <summary>
        /// 人员唯一编码
        /// </summary>
        public string personId { get; set; }
        /// <summary>
        /// 卡号
        /// </summary>
        public string cardNo { get; set; }
        /// <summary>
        /// 人员名称
        /// </summary>
        public string personName { get; set; }
        /// <summary>
        /// 人员所属组织编码
        /// </summary>
        public string orgIndexCode { get; set; }
        /// <summary>
        /// 人员所属组织名称
        /// </summary>
        public string orgName { get; set; }
        /// <summary>
        /// 门禁点名称
        /// </summary>
        public string doorName { get; set; }
        /// <summary>
        /// 门禁点编码
        /// </summary>
        public string doorIndexCode { get; set; }
        /// <summary>
        /// 门禁点所在区域编码
        /// </summary>
        public string doorRegionIndexCode { get; set; }
        /// <summary>
        /// 抓拍图片地址，通过接口获取门禁事件的图片接口获取门禁事件的图片数据
        /// </summary>
        public string picUri { get; set; }
        /// <summary>
        /// 图片存储服务的唯一标识
        /// </summary>
        public string svrIndexCode { get; set; }
        /// <summary>
        /// 事件类型，参考附录D2.1 门禁事件
        /// https://open.hikvision.com/docs/a342242ec21044b9a6989a559c9464be?curNodeId=a342242ec21044b9a6989a559c9464be
        /// </summary>
        public int eventType { get; set; }
        /// <summary>
        /// 进出类型(1：进 0：出 -1:未知要求：进门读卡器拨码设置为1，出门读卡器拨码设置为2)
        /// </summary>
        public int inAndOutType { get; set; }
        /// <summary>
        /// 读卡器IndexCode
        /// </summary>
        public string readerDevIndexCode { get; set; }
        /// <summary>
        /// 读卡器名称
        /// </summary>
        public string readerDevName { get; set; }
        /// <summary>
        /// 控制器设备IndexCode
        /// </summary>
        public string devIndexCode { get; set; }
        /// <summary>
        /// 控制器名称
        /// </summary>
        public string devName { get; set; }
        /// <summary>
        /// 身份证图片uri，它是一个相对地址，可以通过获取门禁事件的图片接口，获取到图片的数据
        /// </summary>
        public string identityCardUri { get; set; }
        /// <summary>
        /// 事件入库时间，参考附录B ISO8601时间格式说明
        /// </summary>
        public DateTime receiveTime { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        public string jobNo { get; set; }
        /// <summary>
        /// 学号
        /// </summary>
        public string studentId { get; set; }
        /// <summary>
        /// 证件号码
        /// </summary>
        public string certNo { get; set; }
    }

}
